package com.tm.userserver.client.impl;

import com.tm.commonutils.dto.OrderDTO;
import com.tm.commonutils.model.OrderModel;
import com.tm.commonutils.utils.R;
import com.tm.userserver.client.OrderClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Slf4j
public class OrderClientImpl implements OrderClient {
    @Override
    public String getOrderTest() {
        log.info("出现服务降级错误");
        return "出现服务降级错误";
    }

    @Override
    public R<OrderModel> order(Long id) {
        return null;
    }

    @Override
    public R<List<OrderModel>> list() {
        return null;
    }

    @Override
    public R save(OrderDTO orderDTO) {
        return null;
    }

    @Override
    public R delByOrderId(Long id) {
        return null;
    }

    @Override
    public R updateById(OrderDTO orderDTO) {
        return null;
    }
}
